﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Statistics.aspx.cs" Inherits="bGallery.Web.Admin.Statistics" MasterPageFile="~/Web/Admin/AdminTemplate.Master" %>

<asp:Content id="body" contentPlaceholderId="body" runat="server">
	<h2><%= GetMessage("mainHeader") %></h2>
	
	<h3><%= GetMessage("discUsageHeader") %></h3>
	<asp:GridView runat="server" ID="gvDiscUsage" AutoGenerateColumns="false">
		<Columns>
			<asp:TemplateField SortExpression="Username">
				<HeaderTemplate><%= GetMessage("usernameTableHeader") %></HeaderTemplate>
				<ItemTemplate><%# Eval("Username")%></ItemTemplate>
			</asp:TemplateField>
			<asp:TemplateField SortExpression="Usage">
				<HeaderTemplate><%= GetMessage("usageTableHeader") %></HeaderTemplate>
				<ItemTemplate><%# Math.Round((double)(long)Eval("Usage")/1024/1024, 2) %></ItemTemplate>
			</asp:TemplateField>

		</Columns>
	</asp:GridView>
</asp:Content>